package com.fqgj.xjd.user.integration.ocr.adapter;

import com.alibaba.fastjson.annotation.JSONField;
import com.fqgj.xjd.user.client.response.OcrVoteridFront;
import com.fqgj.xjd.user.integration.ocr.adapter.basic.BasicAdapter;
import com.fqgj.xjd.user.integration.ocr.adapter.basic.BasicAdapterBean;

/**
 * ·
 *
 * @author liuming
 * Created on 上午11:15 2019/1/3.
 */
public class VoteridFrontAdapter extends BasicAdapter<OcrVoteridFront> {

    @JSONField(name = "name")
    private BasicAdapterBean name;

    @JSONField(name = "dob")
    private BasicAdapterBean dob;

    @JSONField(name = "gender")
    private BasicAdapterBean gender;

    @JSONField(name = "age")
    private BasicAdapterBean age;

    @JSONField(name = "voterid")
    private BasicAdapterBean voterid;

    @JSONField(name = "relation")
    private BasicAdapterBean relation;

    @JSONField(name = "doc")
    private BasicAdapterBean doc;

    public BasicAdapterBean getName() {
        return name;
    }

    public VoteridFrontAdapter setName(BasicAdapterBean name) {
        this.name = name;
        return this;
    }

    public BasicAdapterBean getDob() {
        return dob;
    }

    public VoteridFrontAdapter setDob(BasicAdapterBean dob) {
        this.dob = dob;
        return this;
    }

    public BasicAdapterBean getGender() {
        return gender;
    }

    public VoteridFrontAdapter setGender(BasicAdapterBean gender) {
        this.gender = gender;
        return this;
    }

    public BasicAdapterBean getAge() {
        return age;
    }

    public VoteridFrontAdapter setAge(BasicAdapterBean age) {
        this.age = age;
        return this;
    }

    public BasicAdapterBean getVoterid() {
        return voterid;
    }

    public VoteridFrontAdapter setVoterid(BasicAdapterBean voterid) {
        this.voterid = voterid;
        return this;
    }

    public BasicAdapterBean getRelation() {
        return relation;
    }

    public VoteridFrontAdapter setRelation(BasicAdapterBean relation) {
        this.relation = relation;
        return this;
    }

    public BasicAdapterBean getDoc() {
        return doc;
    }

    public VoteridFrontAdapter setDoc(BasicAdapterBean doc) {
        this.doc = doc;
        return this;
    }

    @Override
    public OcrVoteridFront doAdapter() {
        OcrVoteridFront ocrVoteridFront = new OcrVoteridFront();
        ocrVoteridFront.setDob(this.dob.getValue());
        ocrVoteridFront.setGender(this.gender.getValue());
        ocrVoteridFront.setName(this.name.getValue());
        ocrVoteridFront.setRelation(this.relation.getValue());
        ocrVoteridFront.setVoterid(this.voterid.getValue());
        return ocrVoteridFront;
    }
}
